/*
 * Group 3, User Interface Programming II (vt11)
 * Pooya | Flora | Monica | Can
 */
package vical.undo;

import vical.controller.EntryController;
import vical.model.Entry;

/**
 * The event stands for updating an entry
 * 
 * @author Can
 */
public class UndoableEntryUpdateEvent extends UndoableEntryEvent {

    public UndoableEntryUpdateEvent(Entry oldEntry, Entry newEntry) {
        super(oldEntry, newEntry);
    }

    @Override
    public void reexecute() {
        EntryController.updateEntry(newEntry);
    }

    @Override
    public void unexecute() {
        EntryController.updateEntry(oldEntry);
    }
    
}
